﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BiffenServiceLibary;
using BiffenController.ServiceReference2;
using BiffenModel;

namespace BiffenController
{
    public class BookingController
    {
        RemoteBookingSystemClient cli;
        
        public BookingController()
        {
            cli = new RemoteBookingSystemClient();
            
            
        }

        public void NewBooking(DateTime date, int cinID, int showID, int perID, int seatNo)
        {
            cli.NewBooking(date, cinID, showID, perID, seatNo);
        }

        public Booking GetOneBooking(int bookID)
        {
          
            return cli.GetOneBooking(bookID);
        }

        public void DeleteBooking(int bookID)
        {
            cli.DeleteBooking(bookID);
        }

        public void UpdateBooking(int bookID, DateTime date, int cinID, int showID, int perID, int seatNo)
        {
            cli.UpdateBooking(bookID, date, cinID, showID, perID, seatNo);
        }

        //public List<Booking> AllBookings()
        //{
        //    return cli.AllBookings();
        //}
        
    }
}
